import IButtonOptions from "@/components/ButtonGroup/button-scheme";
import {IFormItem,IFormConfig,ISelectOption} from '@/components/Form/form-scheme'
import InputType from '@/enum/InputType'

/**
 * 查询表单配置
 */
const searchItems: IFormItem[] =  [
            {
                model: 'roleName',
                type: InputType.INPUT,
                label: `角色名:`,
                clearable: true
            },
]
const SearchConfig: IFormConfig = {
    items: searchItems,
    labelWidth: "80px",
    span: 6
}
export {SearchConfig}


/**
 * 按钮组配置
 */
const ButtonConfig: IButtonOptions = {
    reset: {
        clickCall: 'reset',
        btnTip: '重置'
    },
    query: {
        clickCall: 'query',
        btnTip: '查询'
    },
    add: {
        clickCall: 'openDialog',
        btnTip: '添加'
    },
    edit: {
        clickCall: 'openDialog',
        btnTip: '编辑'
    },
    delete: {
        clickCall: 'openDeleteDialog',
        btnTip: '删除'
    }
}
export {ButtonConfig}


/**
 * 添加或更新表单配置
 */